package com.cn.web.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.user.UserRoleDO;
import com.cn.web.role.vo.RoleVO;
import com.cn.web.user.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * description: IUserRoleMapper <br>
 * date: 21.12.16 13:43 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Mapper
public interface IUserRoleMapper extends BaseMapper<UserRoleDO> {

    List<UserVO> listByRole(String roleId);

    List<RoleVO> listRoleByUserId(String userId);

}
